/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.hotel.test.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * This class is used by SOAP remote services.
 *
 * @author    Vien-IT
 * @generated
 */
public class LocalSoap implements Serializable {
	public static LocalSoap toSoapModel(Local model) {
		LocalSoap soapModel = new LocalSoap();

		soapModel.setLocalId(model.getLocalId());
		soapModel.setUserId(model.getUserId());
		soapModel.setUserName(model.getUserName());
		soapModel.setCreateDate(model.getCreateDate());
		soapModel.setModifiedDate(model.getModifiedDate());
		soapModel.setLocalName(model.getLocalName());
		soapModel.setIntroduce(model.getIntroduce());
		soapModel.setImage(model.getImage());

		return soapModel;
	}

	public static LocalSoap[] toSoapModels(Local[] models) {
		LocalSoap[] soapModels = new LocalSoap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static LocalSoap[][] toSoapModels(Local[][] models) {
		LocalSoap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new LocalSoap[models.length][models[0].length];
		}
		else {
			soapModels = new LocalSoap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static LocalSoap[] toSoapModels(List<Local> models) {
		List<LocalSoap> soapModels = new ArrayList<LocalSoap>(models.size());

		for (Local model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new LocalSoap[soapModels.size()]);
	}

	public LocalSoap() {
	}

	public long getPrimaryKey() {
		return _localId;
	}

	public void setPrimaryKey(long pk) {
		setLocalId(pk);
	}

	public long getLocalId() {
		return _localId;
	}

	public void setLocalId(long localId) {
		_localId = localId;
	}

	public long getUserId() {
		return _userId;
	}

	public void setUserId(long userId) {
		_userId = userId;
	}

	public String getUserName() {
		return _userName;
	}

	public void setUserName(String userName) {
		_userName = userName;
	}

	public Date getCreateDate() {
		return _createDate;
	}

	public void setCreateDate(Date createDate) {
		_createDate = createDate;
	}

	public Date getModifiedDate() {
		return _modifiedDate;
	}

	public void setModifiedDate(Date modifiedDate) {
		_modifiedDate = modifiedDate;
	}

	public String getLocalName() {
		return _localName;
	}

	public void setLocalName(String localName) {
		_localName = localName;
	}

	public String getIntroduce() {
		return _introduce;
	}

	public void setIntroduce(String introduce) {
		_introduce = introduce;
	}

	public String getImage() {
		return _image;
	}

	public void setImage(String image) {
		_image = image;
	}

	private long _localId;
	private long _userId;
	private String _userName;
	private Date _createDate;
	private Date _modifiedDate;
	private String _localName;
	private String _introduce;
	private String _image;
}